package com.dxg.msns.music.pojo;

import javax.persistence.Table;
import java.util.Date;
import java.util.List;

@Table(name = "playlist")
public class Playlist {
    private String id;              // 歌单ID（UUID或数据库主键）
    private String name;            // 歌单名称
    private String description;     // 歌单描述
    private String userId;          // 创建者用户ID
    private List<String> musicIds;  // 歌曲ID列表
    private Integer isPublic;       // 是否公开 1为公开
    private String category;        // 分类标签，如 "轻音乐", "运动", "电子"
    private Date createTime;        // 创建时间
    private Date updateTime;        // 更新时间

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public List<String> getMusicIds() {
        return musicIds;
    }

    public void setMusicIds(List<String> musicIds) {
        this.musicIds = musicIds;
    }


    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getIsPublic() {
        return isPublic;
    }

    public void setIsPublic(Integer isPublic) {
        this.isPublic = isPublic;
    }
    // 构造方法、Getter、Setter 省略
}
